package com.cungmua.app.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by kelvin.nguyen on 7/26/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class CitySubcribe {
    private int cityID;
    private String cityName;
    private boolean isSubscribed;

    public CitySubcribe() {
    }

    public CitySubcribe(int cityID, String cityName, boolean isSubscribed) {
        this.cityID = cityID;
        this.cityName = cityName;
        this.isSubscribed = isSubscribed;
    }

    @JsonProperty("CityID")
    public void setCityID(int cityID) {
        this.cityID = cityID;
    }

    @JsonProperty("CityName")
    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @JsonProperty("IsSubscribed")
    public void setSubscribed(boolean isSubscribed) {
        this.isSubscribed = isSubscribed;
    }

    public int getCityID() {
        return cityID;
    }

    public String getCityName() {
        return cityName;
    }

    public boolean isSubscribed() {
        return isSubscribed;
    }

    @Override
    public String toString() {
        return "CitySubcribe{" +
                "cityName='" + cityName + '\'' +
                '}';
    }
}
